package com.adou.d10;

import java.util.function.Supplier;

/**
 * 生产字符串
 */
public class SupplierTest {
    public static String getString(Supplier<String> sup) {
        return sup.get();
    }

    public static void main(String[] args) {
        String s=getString(()->"胡歌");

    }
}
